package com.woniuxy.enums.redis.content;

/**
 * @author 饶志
 * @version 1.0
 * @since 2025-07-12  10:06
 */
public enum ContentRedisKeyEnum {

    ;

    private final String keyPattern;

    ContentRedisKeyEnum(String keyPattern) {
        this.keyPattern = keyPattern;
    }

    // 生成具体的键(支持动态参数)
    public String format(Object... args) {
        return String.format(keyPattern, args);
    }
}
